/*
 * @Author: 大D
 * @email: 857216393@qq.com
 * @Date: 2024-01-26 20:07:00
 * @Description:留言板 接口
 */
//引入
import http from '@/apis/request/http';
import type { Res, IPagination, ICommentInfo, IComment } from './type';
export const addLeaveMessage = (params: IComment) => {
  return http<Res>({
    url: '/leavemessage/addLeaveMessage',
    method: 'post',
    data: params
  });
};
export const getLeaveMessageList = (params: IPagination) => {
  return http<Res<ICommentInfo>>({
    url: '/leavemessage/leaveMessageList',
    method: 'get',
    data: params
  });
};
export const getLeaveMessageChildList = (params: IPagination) => {
  return http<Res<ICommentInfo>>({
    url: '/leavemessage/leaveMessageChildList',
    method: 'get',
    data: params
  });
};
